
var HelloWorldLayer = cc.Layer.extend({
    sprite:null,
    ctor:function () {
        this._super()

        // var helloLabel = new cc.LabelTTF("Hello World2222", "Arial", 38)
        // this.addChild(helloLabel, 5)

        this.sprite = new cc.Sprite(res.HelloWorld_png)
        this.addChild(this.sprite, 0)
        this.sprite.setPosition(400,300)
        return true
    }
});

var HelloWorldScene = cc.Scene.extend({
    onEnter:function () {
        this._super()
        var layer = new HelloWorldLayer()
        this.addChild(layer)
    }
});

